# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=adape-script
pkgver=43.4d0b9ff
pkgrel=1
pkgdesc='Active Directory Assessment and Privilege Escalation Script.'
arch=('x86_64')
groups=('blackarch' 'blackarch-windows' 'blackarch-exploitation')
url='https://github.com/hausec/ADAPE-Script'
license=('custom:unknown')
makedepends=('git')
source=("$pkgname::git+https://github.com/hausec/ADAPE-Script.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 644 -t "$pkgdir/usr/share/windows/$pkgname/" *.ps1
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

